package com.course.server.service.impl;

import com.course.server.domain.Test;
import com.course.server.domain.TestExample;
import com.course.server.mapper.AMapper;
import com.course.server.mapper.TestMapper;
import com.course.server.service.AService;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Classname AServiceImpl
 * @Description TODO
 * @Date 2023-10-29 21:17
 * @Created by 贾悦栋
 */

@Service
public class AServiceImpl implements AService{

    @Resource
    private AMapper aMapper;
    @Resource
    private TestMapper testMapper;
    @Override
    public List<Test> getList() {
        // TestExample testExample = new TestExample();
        // testExample.createCriteria().andIdEqualTo(1);
        // testExample.setOrderByClause("id des");
        List<Test> aList = aMapper.getAList();
        return aList;
    }
}
